ioemu rendering fixes
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 1 Apr 2008 16:22:52 +0000 (17:22 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 1 Apr 2008 16:22:52 +0000 (17:22 +0100)
commit67be449f3f10b83f34ac1f4ad265873c3b520b16
tree090eeec8e105eebd404dfe8f8894698e8020237a
parent75d2b7df30c8bf99f8a265cba070d93944f2995c
ioemu rendering fixes

- no need to call the colourdepth callback in text mode: the buffer
  cannot be shared anyway;

- line size changes are currently undetected: since we added a
  linesize parameter to the resize callback, we also need to detect
  line size changes and call dpy_resize accordingly;

- 8 bit colour depth with the shared framebuffer is broken: in order
  to fix it I disabled the shared buffer in vnc for the 8bit colour
  depth case (it has to be done in software anyway..) and implemented
  paletted colours in both opengl and sdl;

- opengl rendering is broken when there is padding in the framebuffer
  lines: removing unnecessary GL_UNPACK_ALIGNMENT settings so that the
  GL_UNPACK_ROW_LENGTH parameter can work properly.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/ioemu/hw/vga.c
tools/ioemu/hw/vga_int.h
tools/ioemu/sdl.c
tools/ioemu/vl.h
tools/ioemu/vnc.c